package org.example.codeservce.controller;

import cn.dev33.satoken.stp.StpUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Li Qing
 * date: 2024/6/13 16:42
 * description:
 */
@RestController
public class TestCotroller
{
    @GetMapping("test")
    public String test()
    {
        StpUtil.login(1);
        return StpUtil.getTokenValue();
    }
}
